<?php
$this->widget('ext.pagetitle.PageTitle');

$this->breadcrumbs=array(
	Yii::t('admin','Administration')=>array('/admin'),
	Yii::t('admin','Contests')=>array('admin'),
	CHtml::encode($model->name),
);

$this->menu=array(
	array('label'=>Yii::t('admin','Create Contest'),'url'=>array('create')),
	array('label'=>Yii::t('admin','Update Contest'),'url'=>array('update', 'id'=>$model->id)),
	array('label'=>Yii::t('admin','Delete Contest'),'url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
);
?>

<h1><?php echo Yii::t('admin','Contest'); ?> #<?php echo $model->id; ?></h1>

<?php $this->widget('BootstrapDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		array(
			'name'=>'id',
			'label'=>'#',
		),
		'name',
		'description',
		array(
			'name'=>'prizeId',
			'value'=>$model->prize->name,
			'header'=>Yii::t('label','Prize'),
		),
		array(
			'name'=>'submitStart',
			'value'=>Yii::app()->dateFormatter->formatDateTime($model->submitStart,'medium','short'),
		),
		array(
			'name'=>'submitEnd',
			'value'=>Yii::app()->dateFormatter->formatDateTime($model->submitEnd,'medium','short'),
		),
		array(
			'name'=>'voteStart',
			'value'=>Yii::app()->dateFormatter->formatDateTime($model->voteStart,'medium','short'),
		),
		array(
			'name'=>'voteEnd',
			'value'=>Yii::app()->dateFormatter->formatDateTime($model->voteEnd,'medium','short'),
		),
		array(
			'name'=>'created',
			'value'=>Yii::app()->dateFormatter->formatDateTime($model->created,'medium','short'),
		),
		array(
			'name'=>'updated',
			'value'=>Yii::app()->dateFormatter->formatDateTime($model->updated,'medium','short'),
		),
	),
)); ?>